package cn.aws360.boot.extend.open.starter.config;

import cn.aws360.boot.extend.open.api.pojo.properties.OpenProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author junnan
 */
@Configuration
@ComponentScan(basePackages = {"cn.aws360.boot.extend.open.**"})
public class OpenAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(OpenProperties.class)
    public OpenProperties openProperties() {
        return new OpenProperties();
    }

}
